package com.rise.serialportdemo;

/**
 * https://www.jianshu.com/p/0868e90303be
 */

import android.view.View;
import android.widget.Button;

import com.rise.serialportdemo.cmd4000.BaseAppCompatActivity;

import butterknife.BindView;
import butterknife.OnClick;

public class MainActivity extends BaseAppCompatActivity {

    @BindView(R.id.bt_CDM4000)
    Button bt_CDM4000;

    @BindView(R.id.bt_SSP)
    Button bt_SSP;

    @BindView(R.id.bt_assistant)
    Button bt_assistant;

    @BindView(R.id.bt_Printing)
    Button bt_Printing;

    @BindView(R.id.bt_LED)
    Button bt_LED;

    @Override
    protected void initView() {

    }

    @Override
    protected void initData() {

    }

    @Override
    protected int getLayoutId() {
        return R.layout.activity_main;
    }

    @OnClick({R.id.bt_CDM4000, R.id.bt_SSP, R.id.bt_assistant,R.id.bt_Printing,R.id.bt_LED})
    public void onClickView(View view) {
        switch (view.getId()) {

            case R.id.bt_CDM4000:
                startActivity(CMD4000Activity.class);
                break;

            case R.id.bt_SSP:
                startActivity(CMD4000Activity.class);
                break;

            case R.id.bt_assistant:
                startActivity(CMD4000Activity.class);
                break;

            case R.id.bt_Printing:
                startActivity(CMD4000Activity.class);
                break;

            case R.id.bt_LED:
                startActivity(LEDActivity.class);
                break;
        }
    }
}
